package com.hzw.saas.api.hpc.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author sonam
 * @sine 2021/8/21 9:42 下午
 */
@Data
@ApiModel("试用合同参数")
public class TrialContractQuery {

    @Min(value = 0, message = "请输入正确的核时")
    @NotNull(message = "试用核时不能为空")
    @ApiModelProperty(value = "试用核时")
    private Double coreTime;

    @ApiModelProperty(value = "过期天数")
    private Integer expireDay;

    @NotBlank(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID")
    private String userId;

    @NotBlank(message = "HPC账号ID不能为空")
    @ApiModelProperty(value = "HPC账号ID")
    private String hpcAccountId;

    @NotBlank(message = "供应商类型不能为空")
    @ApiModelProperty(value = "供应商类型")
    private String providerCode;

    @ApiModelProperty(value = "队列名称")
    private String slurmAccount;

}
